<template>
  <div class="safetyOrderedDefault">
    <div style="height:50px">
      <el-button type="primary" style="float:left;margin-left:30px;" @click="goback">返回上一级</el-button>
    </div>
    <el-table :data="defaultData" border style="width: 100%">
      <el-table-column prop="id" align="center" label="订单号" />
      <el-table-column prop="user" align="center" label="求助人" />
      <el-table-column prop="user2" align="center" label="接单人" />
      <el-table-column prop="phone" align="center" label="联系方式" />
      <el-table-column prop="state" align="center" label="服务类型" />
      <el-table-column prop="time" align="center" label="求助时间" />
      <el-table-column prop="money" align="center" label="赏金" />
    </el-table>
    <el-table :data="defaultData" border style="width: 100%;margin-top:80px;">
      <el-table-column label="图片" align="center">
        <template slot-scope="scope">
          <img src alt="图片加载失败">
        </template>
      </el-table-column>
      <el-table-column prop="money" align="center" label="订单状态">
        <span>已完成</span>
      </el-table-column>
      <el-table-column prop="money" align="center" label="地址">
        <span>浙江省杭州市下城区下沙大都会风情苑11幢1单元101室</span>
      </el-table-column>
      <el-table-column prop="money" align="center" label="处理结果">
        <span>将用户安全送至指定地点</span>
      </el-table-column>
      <el-table-column prop="phone" align="center" label="评分">
        <span>100分</span>
      </el-table-column>
    </el-table>
  </div>
</template>
<script>
export default {
  data() {
    return {
      defaultData: []
    }
  },
  mounted() {
    var data = this.$route.params.data
    if (data == undefined) {
      this.goback()
    } else {
      this.defaultData.push(data)
    }
  },
  methods: {
    // 返回
    goback() {
      this.$router.push({ path: '/safety/safetyOrdered' })
    }
  }
}
</script>
<style lang="scss" scoped>
.safetyOrderedDefault {
  margin-top: 55px;
}
</style>
